<script type='text/javascript' src="/includes/js/checkexist.js"></script>
<div id="Register">
	<?php
		require_once 'includes/config.php';
		require_once 'includes/functions.php';
		require_once 'includes/add.inc.php';
	?>
	<!--<?php
		if (isset($_POST['dangki']))
		{
			if(isset($_POST['email']) && isset($_POST['password']))
			{
				$username = $_POST['UserName'];
				$password = SHA1($_POST['PassWord']);
				$email = $POST['Email'];
				$birthday = convertDateVE($_POST['BirthDay']);
				$phone = $_POST['Phone'];
				$insert = doQuery("INSERT INTO member VALUES('','$username','$password','email','birthday','phone',NULL)");
				if ($insert)
				{
					echo '<script laguage="javascript"> alert("Dang ki thanh cong");
					window.location="index.php";
					</script>';
				}
				else
					echo "Loi dang ki!";
			}
		}
	?>-->
	<form id="dangki" method="post">
	<p style="margin-top: 24px;">UserName: <input type="text" name="UserName" /></p>
	<p style="padding-right: 0px; padding-bottom: 0px; margin-top: 10px; margin-right: 83px;">Password: <input type="password" name="PassWord" /></p>
	<p style="padding-bottom: 0px; padding-right: 0px; margin-right: 109px; margin-left: 4px; margin-top: 10px;">Password Again: <input type="password" name="PassWordAgain" /></p>
	<p style="padding-bottom: 0px; padding-right: 0px; margin-left: 70px; margin-right: 95px;">Email: <input type="text" name="Email" /></p>
	<p style="padding-bottom: 0px; padding-right: 0px; margin-left: 32px; margin-right: 82px;">BirthDay: <input type="text" name="BirthDay"/></p>
	<p style="padding-bottom: 0px; padding-right: 0px; margin-left: 4px; margin-right: 97px;">Number Phone: <input type="text" name="Phone" /></p>
	<p><input type="submit" name="DangKi" value="Register" /></p>
	</form>
</div>